﻿#pragma once


namespace GLL
{
	class Signal
	{
#ifdef GLL_WIN
		HANDLE _handle;
#endif

	public:
		Signal();
		~Signal();
		void Wait();
		void Notify();
	};

	class Check
	{
		bool _set;
	public:
		Check(){_set = false;}
		void Set(){_set = true;}
		bool IsSet()
		{
			if(!_set) return false;
			_set = false;
			return true;
		}
		operator bool(){return IsSet();}
	};

};//GLL
